package com.augn.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("`order`")
public class Order implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer orderId; //订单编号
    private Integer userId; //用户编号
    private Integer goodsId; //商品编号  默认为NULL 允许为空
    private Integer styleId; //样式编号  默认为NULL 允许为空
    private Integer num; //数量
    private Float price; //价格

    private Integer addressId; //地址
    private String state; //订单状态
    private Integer isDelete; //是否已删除  默认为NULL 允许为空

    private String styleName; //款式名称
    private String image; //款式照片
    private String name; //商品名词

    private Float pay; //订单付款
//    private Integer freight; //运费
    private String payTime; //付款时间  默认为NULL 允许为空


    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
